package org.jincheng.ch06;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 联系人地址表
 * @TableName t_address
 */

public class Address implements Serializable {
    /**
     * 联系地址ID
     */
    private Integer id;

    /**
     * 会员ID
     */
    private Integer userId;

    /**
     * 联系人姓名
     */
    private String userName;

    /**
     * 手机
     */
    private String telNumber;

    /**
     * 邮政编码
     */
    private String postalCode;

    /**
     * 省市区(格式为空格隔开)
     */
    private String fulllocation;

    public Address() {
    }

    public Address(Integer id, Integer userId, String userName, String telNumber, String postalCode, String fulllocation) {
        this.id = id;
        this.userId = userId;
        this.userName = userName;
        this.telNumber = telNumber;
        this.postalCode = postalCode;
        this.fulllocation = fulllocation;
    }

    public Address(Integer id, String userName, String telNumber, String detail) {
        this.id = id;
        this.userName = userName;
        this.telNumber = telNumber;
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getTelNumber() {
        return telNumber;
    }

    public void setTelNumber(String telNumber) {
        this.telNumber = telNumber;
    }

    public String getPostalCode() {
        return postalCode;
    }

    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode;
    }

    public String getFulllocation() {
        return fulllocation;
    }

    public void setFulllocation(String fulllocation) {
        this.fulllocation = fulllocation;
    }

    @Override
    public String toString() {
        return "Address{" +
                "id=" + id +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", telNumber='" + telNumber + '\'' +
                ", postalCode='" + postalCode + '\'' +
                ", fulllocation='" + fulllocation + '\'' +
                '}';
    }
}